﻿using Tea;

partial class Program
{
    static async Task GetDingDingToken()
    {
        AlibabaCloud.OpenApiClient.Models.Config config = new()
        {
            Protocol = "https",
            RegionId = "central"
        };
        var client = new AlibabaCloud.SDK.Dingtalkoauth2_1_0.Client(config);

        AlibabaCloud.SDK.Dingtalkoauth2_1_0.Models.GetAccessTokenRequest getAccessTokenRequest = new()
        {
            AppKey = "dingmsbch4nzgtbxicli",
            AppSecret = "4hAZ6FX4MALUY2CvBTMiYmnery557JnsFt0QUowVuP3FImDoWPEq6UuCAl-Ic68D",
        };
        var token = client.GetAccessToken(getAccessTokenRequest);
    }
}
